import result from '/@utils/Axios.ts'

export function getUserList(param: Object){
    return result({
        url: '/api/hzadmin/user/list/',
        method: 'get',
        params: param
    })
}

export function updateUser(param: Object){
    return result({
        url: '/api/hzadmin/user/update/' + param.id + '/',
        method: 'post',
        data: param
    })
}

export function adduser(param: Object){
    return result({
        url: '/api/hzadmin/user/add/',
        method: 'post',
        data: param
    })
}
export function deleteUser(id: number){
    return result({
        url: '/api/hzadmin/user/delete/'+id + '/',
        method: 'post',
    })
}

export function getGroupList(){
    return result({
        url: '/api/hzadmin/group/list/',
        method: 'get',
    })
}

export function addGroup(param){
    return result({
        url: '/api/hzadmin/group/add/',
        method: 'post',
        data: param
    })
}

export function deleteGruop(id){
    return result({
        url: '/api/hzadmin/group/delete/'+id + '/',
        method: 'post',
    })
}